package cn.huiyunche.base.service.enums;

/**
 * 易宝实时出账状态
 *
 * @author hdy [Tuffy]
 */
public enum YeepayUrgencyEnum {

    Y("1", "实时出款"),
    N("0", "非实时出款");

    private final String value;
    private final String text;

    YeepayUrgencyEnum(String value, String text) {
        this.value = value;
        this.text = text;
    }

    public String getValue() {
        return value;
    }

    public String getText() {
        return text;
    }

    public static YeepayUrgencyEnum getByValue(String value) {
        for (YeepayUrgencyEnum temp : YeepayUrgencyEnum.values()) {
            if (temp.getValue().equals(value)) {
                return temp;
            }
        }
        return null;
    }
}
